import { newRequest } from '@/utils/newRequest'

export function getWorkshop(params) {
    return newRequest({
        url: '/api/BasicsData/GetWorkShopList',
        method: 'get',
        params: {
            ...params
        }
    })
}

export function insertWorkshop(data) {
    return newRequest({
        url: '/api/BasicsData/InsertWorkShop',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function updateWorkshop(data) {
    return newRequest({
        url: '/api/BasicsData/UpdateWorkShop',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function removeWorkshop(data) {
    return newRequest({
        url: '/api/BasicsData/RemoveWorkShop',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function startOrStopWorkShop(data) {
    return newRequest({
        url: '/api/BasicsData/StartOrStopWorkShop',
        method: 'post',
        data: {
            ...data
        }
    })
}